/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-03-16
 * Time: 16:32
 */
public class Student {
    private String stuID;
    private String stuName;
    private int stuNum;

    public static int num = 0;
    {
        stuNum = ++num;
    }
    public Student(){
        System.out.println("学生类无参构造方法");
    }
    public Student(String id, String name){
        stuID = id;
        stuName = name;
        System.out.println("学生类有参构造方法");
    }

    public String getStuID() {
        return stuID;
    }
    public String getStuName() {
        return stuName;
    }
    public int getStuNum() {
        return stuNum;
    }

    public void setStuID(String stuID) {
        this.stuID = stuID;
    }
    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

//    @Override
//    public String toString() {
//        return stuID+"\t"+stuName;
//    }
}
